//
//  LoadMoreFooter.m
//  Weibo
//
//  Created by Anasue on 9/15/15.
//  Copyright (c) 2015 Anasue. All rights reserved.
//

#import "LoadMoreFooter.h"

@interface LoadMoreFooter ()
@property (weak, nonatomic) IBOutlet UILabel *loadLabel;

@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *activityIndicator;


@end

@implementation LoadMoreFooter

+ (instancetype)footer
{
    return [[[NSBundle mainBundle]loadNibNamed:@"LoadMoreFooter" owner:nil options:nil]lastObject];
}

- (void)beginRefreshing
{
    self.loadLabel.text = @"正在加载更多微博数据";
    self.loadLabel.contentMode = UIViewContentModeCenter;
    self.refreshing = YES;
    [self.activityIndicator startAnimating];
}

- (void)endRefreshing
{
    self.loadLabel.text = @"上拉刷新更多微博数据";
    self.loadLabel.contentMode = UIViewContentModeCenter;
    self.refreshing = NO;
    [self.activityIndicator stopAnimating];
    
}



@end
